package com.example.day1;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {


    /**
     * agentCondition : 1
     * anylinkAttribute : [{"attributeName":"gateModel","attributeValue":"IE","serialNumber":1602238},{"attributeName":"vpnVersion","attributeValue":"2.1.03","serialNumber":1602238}]
     * attrs : {}
     * deviceList : [{"modelName":"ra-model","condition":1,"serialNumber":"1602238","deviceId":1640692735,"deviceName":"ra-device"},{"modelName":"T6炉","condition":1,"serialNumber":"1602238","deviceId":1640691713,"deviceName":"大仓温度记录仪"}]
     * protocol : mqtt
     * serialNumber : 1602238
     * tenantList : []
     * versionDetail : 3.7.23
     */

    private int agentCondition;
    private AttrsBean attrs;
    private String protocol;
    private int serialNumber;
    private String versionDetail;
    private List<AnylinkAttributeBean> anylinkAttribute;
    private List<DeviceListBean> deviceList;
    private List<?> tenantList;

    public int getAgentCondition() {
        return agentCondition;
    }

    public void setAgentCondition(int agentCondition) {
        this.agentCondition = agentCondition;
    }

    public AttrsBean getAttrs() {
        return attrs;
    }

    public void setAttrs(AttrsBean attrs) {
        this.attrs = attrs;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public int getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(int serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getVersionDetail() {
        return versionDetail;
    }

    public void setVersionDetail(String versionDetail) {
        this.versionDetail = versionDetail;
    }

    public List<AnylinkAttributeBean> getAnylinkAttribute() {
        return anylinkAttribute;
    }

    public void setAnylinkAttribute(List<AnylinkAttributeBean> anylinkAttribute) {
        this.anylinkAttribute = anylinkAttribute;
    }

    public List<DeviceListBean> getDeviceList() {
        return deviceList;
    }

    public void setDeviceList(List<DeviceListBean> deviceList) {
        this.deviceList = deviceList;
    }

    public List<?> getTenantList() {
        return tenantList;
    }

    public void setTenantList(List<?> tenantList) {
        this.tenantList = tenantList;
    }

    public static class AttrsBean {
    }

    public static class AnylinkAttributeBean {
        /**
         * attributeName : gateModel
         * attributeValue : IE
         * serialNumber : 1602238
         */

        private String attributeName;
        private String attributeValue;
        private int serialNumber;

        public String getAttributeName() {
            return attributeName;
        }

        public void setAttributeName(String attributeName) {
            this.attributeName = attributeName;
        }

        public String getAttributeValue() {
            return attributeValue;
        }

        public void setAttributeValue(String attributeValue) {
            this.attributeValue = attributeValue;
        }

        public int getSerialNumber() {
            return serialNumber;
        }

        public void setSerialNumber(int serialNumber) {
            this.serialNumber = serialNumber;
        }
    }

    public static class DeviceListBean {
        /**
         * modelName : ra-model
         * condition : 1
         * serialNumber : 1602238
         * deviceId : 1640692735
         * deviceName : ra-device
         */

        private String modelName;
        private int condition;
        private String serialNumber;
        private int deviceId;
        private String deviceName;

        public String getModelName() {
            return modelName;
        }

        public void setModelName(String modelName) {
            this.modelName = modelName;
        }

        public int getCondition() {
            return condition;
        }

        public void setCondition(int condition) {
            this.condition = condition;
        }

        public String getSerialNumber() {
            return serialNumber;
        }

        public void setSerialNumber(String serialNumber) {
            this.serialNumber = serialNumber;
        }

        public int getDeviceId() {
            return deviceId;
        }

        public void setDeviceId(int deviceId) {
            this.deviceId = deviceId;
        }

        public String getDeviceName() {
            return deviceName;
        }

        public void setDeviceName(String deviceName) {
            this.deviceName = deviceName;
        }
    }
}
